<%@page language="java" pageEncoding="UTF-8" contentType="text/html;charset=utf-8"%>
<%@include file="/includes/taglibs.jsp"%>
<%@page import="com.feib.soeasy.util.UserUtil"%>

<c:choose>
    <c:when test="${null != actionBean.resultPayer}">
        <div id="modifyPayerViewDiv">
            <stripes:form id="payerModifyFrom" beanclass="com.feib.soeasy.action.Soez1015ActionBean" 
                method="post">        
                <table id="PayerTable">
                    <c:if test="${actionBean.payerTempMessage ne null }">
                        <tr>
                            <th>注意</th>
                            <td colspan="3">
                                <c:out value="${actionBean.payerTempMessage }"></c:out>                    
                            </td>
                        </tr>
                    </c:if> 
                    <%  if (UserUtil.isBankGroup()) {%>
                    <tr>
                        <th>業者代號<span id="mustKeyInStar">**</span></th>
                        <td>
                        	<c:out value="${actionBean.resultPayer.group.groupNo }" />                                
                        </td>
                        <th>業者名稱</th>
                        <td>
                        	<c:out value="${actionBean.resultPayer.group.groupName }" />                               
                        </td>                                 
                    </tr>
                    <%
                        } else {
                    %>                             
                    <% }%>                  
                    <tr>
                        <th>客戶編號</th>
                        <td>
                        	<c:out value="${actionBean.resultPayer.payerNo }" />
                        </td> 
                        <th>姓名</th>
                        <td>
                        	<c:out value="${actionBean.resultPayer.payerName }" />
                        </td>                       
                    </tr>                 
                    <tr>
                        <th>E-MAIL</th>
                        <td colspan="3">
                        	<c:out value="${actionBean.resultPayer.payerEmail }" />
                        </td>                        
                    </tr>                
                    <tr>
                        <th>電話</th>
                        <td>
                        	<c:out value="${actionBean.resultPayer.payerTelNo }" />
                        </td>
                        <th>手機號碼</th>
                        <td>
                        	<c:out value="${actionBean.resultPayer.payerCellNo }" />
                        </td>                        
                    </tr>  
                    <tr>
                        <th>坪數</th>
                        <td>
                        	<c:out value="${actionBean.resultPayer.levelGround }" />
                        </td>
                        <th>車位數</th>
                        <td>
                        	<c:out value="${actionBean.resultPayer.parkingCount }" />
                        </td>                        
                    </tr>  
                    
                    <tr>
                        <th>門牌號碼</th>
                        <td colspan="3">
                        	<c:out value="${actionBean.resultPayer.houseNo }" />                      
                        </td>
                    </tr>    
                    <tr>
                        <th>聯絡地址</th>
                        <td colspan="3">
                        	<c:out value="${actionBean.resultPayer.payerAddress }" />                       
                        </td>
                    </tr> 
                    <tr>
                        <th>備註</th>
                        <td colspan="3">
                        	<c:out value="${actionBean.resultPayer.payerMemo}" />                        
                        </td>
                    </tr>                                                                             
                    <tr>
                        <td colspan="4" class="queryFunction" align="center">
                        	<stripes:button id="printBtn3" name="printBtn3" value="列印" class="formBtn"/>
                            <stripes:button id="doCloseBtn" name="doCloseBtn" value="離開" class="formBtn"/>
                        </td>
                    </tr>                   
                </table>
            </stripes:form>    
        </div>
        <script type="text/javascript">
        <!--
        $(document).ready(function() {
                
                $("#doCloseBtn").click(function() {
                    $("#payerDiv").dialog("close");
                });
                
                $('#printBtn3').click(function() {
    				divPrint('modifyPayerViewDiv');
    			});
        
        });    
        //-->
        </script>        
    </c:when>
    <c:otherwise>
            查無資料
        <script type="text/javascript">
        <!--
        $(document).ready(function() {
            $( "#payerDiv" ).dialog({  title:'繳款人資料' ,width: 600, resizable: false, modal: true  });
        });
        //-->
        </script>
    </c:otherwise>
</c:choose>    